package com.ruoyi.web.controller.carbon;

import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.carbon.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController("carbonTestController")
@Anonymous
@RequestMapping("/carbon/test")
public class TestController {

    @Autowired
    private TestService testService;

    @GetMapping
    public String test() {
        System.out.println("测试成功");
        return testService.test();
    }
}
